Wdr\App\Controllers\ManageDiscount D

Total Complexity 790
Dependencies 8
Dependents 3
Total lines 3,076
Lines of code 2,267
Logical lines of code 1,470
Comment lines 576
Methods 98
Properties 14

Methods 98

Method Rating Maintainability Complexity Lines of code
getSetDiscountItemPriceHtml()
D
20
79 160
getPriceHtml()
D
30 43 103
orderItemsSaved()
D
29 35 107
getVariablePriceHtml()
D
31 35 105
getSetStrikeoutPrice()
C
32 27 105
applyVirtualCouponForCartRules()
C
33 25 93
getCartPriceHtml()
B
39 21 57
applyCartDiscount()
B
37 20 72
validateVirtualCouponForCartRules()
B
38 18 66
getAppliedRuleDiscountsFromTotalDiscountDetails()
B
44 17 43
applyUrlCoupon()
A
48 16 28
orderItemsSavedForBXGYFree()
A
46 15 36
replaceSaleTagText()
A
42 14 45
applyCartProductDiscount()
A
43 14 43
onCreateWoocommerceOrderLineItem()
A
47 14 34
getDiscountPerItem()
A
50 12 31
getDiscountDetailsFromCartItem()
A
52 12 23
getPriceHtmlSalePriceAdjustment()
A
48 11 32
removeWrongCallbacks()
A
50 11 31
getDiscountDetailsFromOrderItem()
A
51 11 25
buy_x_get_y_cheapest_additional_strike_out()
A
46 10 36
removeAppliedMessageOfThirdPartyCoupon()
A
54 11 20
calculateProductDiscountPrice()
A
48 10 34
isCallbackMatch()
A
50 10 28
orderItemsSavedForBXGXFree()
A
51 10 23
hideZeroCouponValue()
A
53 10 20
removeThirdPartyCoupon()
A
54 9 20
isCartContainsAnyThirdPartyCoupon()
A
56 9 17
getAppliedRuleDiscountsFromCartDiscountDetails()
A
50 8 26
prepareDiscountDetails()
A
52 8 22
applyFakeCouponsForCartRules()
A
54 8 21
getDiscountDetailsOfAProduct()
A
54 8 20
getDiscountDetailsFromOrder()
A
56 8 17
calculateCartPageDiscounts()
S
52 7 23
isProductInSale()
S
53 7 22
applyTaxInFee()
S
57 7 15
getStrikeoutPrice()
S
52 6 24
removeDuplicateStrikeoutPrice()
S
59 6 13
setCartCouponDiscountDetails()
S
54 5 21
awdrExportCsv()
S
52 5 20
showBulkTableInPositionManually()
S
55 5 18
checkCouponToApply()
S
48 4 33
getCartTotalPriceHtml()
S
57 5 17
displayTotalSavingsThroughDiscountInOrder()
S
56 5 16
displayTotalSavingsInOrderAfterOrderTotal()
S
56 5 16
reCalculateCartTotal()
S
65 6 9
setDiscountInfoToOrderItemMeta()
S
61 6 10
getCalculateDiscountPriceFrom()
S
56 4 18
displayPromotionMessages()
S
63 5 10
getSavedAmountFromOrderItem()
S
65 5 8
getSaveAmountOfAProduct()
S
65 5 8
getSavedAmountFromCartItem()
S
65 5 8
getDiscountPercentageOfAProduct()
S
65 5 7
getPercentageFromCartKey()
S
60 4 13
getItemTotalDiscount()
S
62 4 12
orderItemMetaDiscountDetails()
S
60 4 12
manageVirtualCoupon()
S
50 3 27
getCartProductSubtotalPriceHtml()
S
61 4 11
getProductIdsFromCartKey()
S
62 4 11
didAppliedDiscountAlready()
S
62 4 11
showAppliedRulesMessages()
S
57 3 16
getDiscountPriceFromOrderItem()
S
66 4 8
getDiscountPriceFromCartItem()
S
66 4 8
changeCustomTaxonomyLabel()
S
69 4 6
removeOtherEvents()
S
64 4 10
getSavedAmountFromOrder()
S
66 4 8
doApplyDiscount()
S
59 3 14
orderSubTotalDiscountDetails()
S
60 3 12
showAdvancedTableInPositionManually()
S
62 3 11
loadAssets()
S
51 2 24
changeTemplateForSaleTag()
S
65 3 8
doProcessStrikeOut()
S
67 3 8
overwriteCouponLabel()
S
67 3 7
updateProductsAsOnSale()
S
65 3 9
changeCouponLabelInFrontEnd()
S
63 3 10
removeDuplicateValues()
S
66 3 8
getDiscountPriceOfAProduct()
S
67 3 7
removeThirdPartyCouponIfRequired()
S
72 2 5
showBulkTableInPosition()
S
72 2 6
calculateCartTotalIfIsNotCalculated()
S
74 2 5
getProductRegularPrice()
S
69 2 6
suppressOtherDiscountPlugins()
S
59 1 15
showAdvancedTableInPosition()
S
72 2 6
getProductSalePrice()
S
69 2 6
isProductOnSale()
S
70 2 6
is_closure()
S
69 2 7
getDiscountRules()
S
67 2 8
getYouSavedText()
S
63 2 10
displaySubTotalPromotionMessagesInCheckoutContainer()
S
78 1 4
displaySubTotalPromotionMessagesInCheckout()
S
68 1 8
__construct()
S
78 1 4
removeOnSaleFlashEvent()
S
72 1 6
calculateInitialAndDiscountedPrice()
S
77 1 3
displayPromotionMessagesInCheckoutContainer()
S
78 1 4
removeCouponAppliedMessage()
S
73 1 5
removeAppliedCoupon()
S
68 1 7
setCartCouponValues()
S
65 1 8
displayPromotionMessagesInCheckout()
S
68 1 8